<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <h1>标题</h1>
    <div data-id="12465" id="good">厉害啦</div>
    <div data-id="12" id="haha" >哈哈哈哈</div>

    <script src="../jquery/jquery.js"></script>

    <script>
        console.log("$", window);

        var good = $("#good");
        var haha = $("#haha");

        good.on('click', function(){
            console.log('sad', this.innerHTML);
        })


        haha.on('click', function(){
            console.log('啊哈哈哈哈', $(this));
        })

        haha.on('click.abc', function(){
            console.log('abc', $(this));
        })

        good.on('mouserover', function(){
            console.log('啊哈哈哈哈', good);
        })

        document.getElementById("good").addEventListener('click', function(){
            console.log("abc", this);
        })

        // good.off();
        console.log('啊哈哈哈哈', haha);
        console.log('good', good);

    </script>
</body>
</html>